package com.xx.springboot.improve;

import com.xx.springboot.improve.conf.MvcConfigurer;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.Import;

/**
 * author: XiongXin
 * description:
 * time: 2017/3/8.
 */
@EnableAutoConfiguration
@SpringBootApplication
@Import(MvcConfigurer.class)
@ServletComponentScan("com.xx.springboot.improve")
public class Application {

    private static Logger logger = LoggerFactory.getLogger(Application.class);

    public static void main(String args[]) throws InterruptedException {
        logger.info("项目开始启动");
        SpringApplication.run(Application.class, args);
        logger.info("项目启动成功");
    }

}
